/**
 * Bestpay.com.cn Inc.
 * Copyright (c) 2011-2019 All Rights Reserved.
 */
package com.suxiaoxiao.springbootlearn.designpattern.factorypattern.simplefactory.pizza;

import java.util.ArrayList;

/**
 * 披萨类
 *
 * @author zhaorongzhang
 * @version Pizza.java, v 0.1 2019/12/28 4:01 下午 zhaorongzhang Exp $$
 */
public class Pizza {

    /**
     * Pizza name
     */
    protected String name;

    /**
     * 面团
     */
    protected String dough;

    /**
     * 酱
     */
    protected String sauce;

    /**
     * 浇头
     */
    protected ArrayList<String> toppings = new ArrayList<>();

    public void prepare() {
        System.out.println("Preparing: " + name);
        System.out.println("Tossing dough...");
        System.out.println("Adding sauce...");
        System.out.println("Adding toppings: ");
        toppings.forEach(n -> System.out.println(" " + n));
    }

    public void bake() {
        System.out.println("Bake for 25 minutes at 350");
    }

    public void cut() {
        System.out.println("Cutting the pizza into diagonal slices");
    }

    public void box() {
        System.out.println("Place pizza in official PizzaStore box");
    }

    public String getName() {
        return this.name;
    }

}